/*全局背景透明渐变*/
#recent-posts>.recent-post-item,.layout_page>div:first-child:not(.recent-posts),.layout_post>#page,.layout_post>#post,.read-mode .layout_post>#post {
    background: var(--light_bg_color)
}

#aside-content .card-widget {
    background: var(--light_bg_color)
}

/*全局透明背景*/
#web_bg {
    background: url(https://mooii.oss-cn-shanghai.aliyuncs.com/20211021164956.png)!important;
    /*重新定义background会导致原有定位属性失效，所以也需要再声明一次加权的定位属性*/
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
 
::-webkit-scrollbar-track {
  background-color: rgba(73, 177, 245, 0.2);
  border-radius: 2em;
}
 
::-webkit-scrollbar-thumb {
  background-color: #49b1f5;
  background-image: -webkit-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.4) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.4) 75%,
    transparent 75%,
    transparent
  );
  border-radius: 2em;
}
 
::-webkit-scrollbar-corner {
  background-color: transparent;
}
 
::-moz-selection {
  color: #fff;
  background-color: #49b1f5;
}

/*字体*/
@font-face {
    font-family:'Candyhome' ;  /* 字体名自定义即可 */
    src:url('/fonts/candy.ttf'); /* 字体文件路径 */
    font-display : swap;
}
h1#site-title {
  font-family: 'Candyhome', sans-serif;
}

/*H1-H6标题小风车效果*/
/* 文章页H1-H6图标样式效果 */
h1::before, 
h2::before, 
h3::before, 
h4::before, 
h5::before, 
h6::before {
    -webkit-animation: ccc 1.6s linear infinite ;
    animation: ccc 1.6s linear infinite ;
}
@-webkit-keyframes ccc {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg)
    }
    to {
        -webkit-transform: rotate(-1turn);
        transform: rotate(-1turn)
    }
}
@keyframes ccc {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg)
    }
    to {
        -webkit-transform: rotate(-1turn);
        transform: rotate(-1turn)
    }
}
/*小风车颜色、大小修改*/
#content-inner.layout h1::before {
    color: #ef50a8 ;
    margin-left: -1.55rem;
    font-size: 1.3rem;
    margin-top: -0.23rem;
}
#content-inner.layout h2::before {
    color: #fb7061 ;
    margin-left: -1.35rem;
    font-size: 1.1rem;
    margin-top: -0.12rem;
}
#content-inner.layout h3::before {
    color: #ffbf00 ;
    margin-left: -1.22rem;
    font-size: 0.95rem;
    margin-top: -0.09rem;
}
#content-inner.layout h4::before {
    color: #a9e000 ;
    margin-left: -1.05rem;
    font-size: 0.8rem;
    margin-top: -0.09rem;
}
#content-inner.layout h5::before {
    color: #57c850 ;
    margin-left: -0.9rem;
    font-size: 0.7rem;
    margin-top: 0.0rem;
}
#content-inner.layout h6::before {
    color: #5ec1e0 ;
    margin-left: -0.9rem;
    font-size: 0.66rem;
    margin-top: 0.0rem;
}

/*小风车hover效果*/
#content-inner.layout h1:hover, #content-inner.layout h2:hover, #content-inner.layout h3:hover, #content-inner.layout h4:hover, #content-inner.layout h5:hover, #content-inner.layout h6:hover {
    color: #49b1f5 ;
}
#content-inner.layout h1:hover::before, #content-inner.layout h2:hover::before, #content-inner.layout h3:hover::before, #content-inner.layout h4:hover::before, #content-inner.layout h5:hover::before, #content-inner.layout h6:hover::before {
    color: #49b1f5 ;
    -webkit-animation: ccc 3.2s linear infinite ;
    animation: ccc 3.2s linear infinite ;
}

/*文章页透明度*/
#content-inner {
    --light_bg_color: rgb(255,255,255 ,90%); /*侧边栏页面*/
    --dark_bg_color: rgba(18, 18, 18, 0.8);
    --light_page_color: rgb(255,255,255 ,90%);  /*文章页面*/
    --dark_page_color: rgba(18, 18, 18, 0.8);
}

/*顶部图透明*/
#page-header{
  background: transparent!important;
}

/*顶部图遮罩*/
#page-header.post-bg:before {
  background-color: rgba(0, 0, 0, 0.4)!important;
}

/*页脚透明*/
#footer{
  background: transparent !important;
}

/* 页脚遮罩透明 */
#footer::before {
    background: rgba(255, 255, 255, 0);
}

/*夜间模式伪类遮罩层透明*/
[data-theme="dark"]
  #footer::before{
      background: transparent!important;
    }
[data-theme="dark"]
  #page-header::before{
    background: transparent!important;
    /* color: #d4ddeb, #79b8ff, #79b8ff; */
    }
